package com.nnnu.wsnackshop.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.Set;

import static io.swagger.v3.oas.annotations.media.Schema.*;

@Data
@Schema(description = "分配角色给用户 DTO")
public class AssignUserRoleDTO {
    @NotNull(message = "用户 ID 不能为空")
    @Schema(description = "用户 ID", requiredMode = RequiredMode.REQUIRED, example = "3")
    private Long userId;

    @NotEmpty(message = "角色 ID 不能为空")
    @Schema(description = "要分配的角色 ID 列表", requiredMode = RequiredMode.REQUIRED, example = "[2,3]")
    private Set<Long> roleIds;
}
